/**
 * Project: lionbule-other
 * 
 * File Created at 2012-8-1
 * $Id$
 * 
 * Copyright 1999-2100 Alibaba.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package com;

import java.util.ArrayList;
import java.util.List;

/**
 * Result.
 * @author LionBule
 *  2012-8-1 下午7:46:28
 */
public class Result {
    /**
     * true: 无风险
     * false: 该客户存在风险, @see reasons记录风险
     */
    private boolean      result;
    /**
     * 风险记录
     */
    private List<String> reasons;

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public List<String> getReasons() {
        return reasons;
    }

    public void setReasons(List<String> reasons) {
        this.reasons = reasons;
    }

    /**
     * 添加一条原因记录.
     * @param reason
     */
    public void addReason(String reason) {
        if (reasons == null) {
            reasons = new ArrayList<String>();
        }
        reasons.add(reason);
    }
}
